package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.reggie.domain.Dish;

import java.util.List;

public interface DishService {
	Page<Dish> findByPage(String name, Integer pageNum, Integer pageSize);
	
	void save(Dish dish);
	
	//通过ID查找菜品
	Dish findById(Long id);
	
	//修改菜品信息
	void update(Dish dish);
	
	void startAndStop(Integer statu, List<String> ids);
	
	void delete(List<String> ids);
	
	List<Dish> findByCategoryId(Long categoryId);
	
	List<Dish> findByCategoryId(Long categoryId, Long status);
	
	List<Dish> searchDishByName(String name);
}
